﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace wxtools
{
    public partial class frmProgress : Form
    {
        public frmProgress()
        {
            InitializeComponent();
        }

        public void setValue(int val, string text)
        {
            this.Invoke((Action)delegate
            {
                this.progressBar1.Value = val;
                label1.Text = decimal.Round(this.progressBar1.Value * 1.0m, 0) + "%";
                label2.Text = text;
                this.Update();
            });
        }
    }
}
